package common.simulation.scenarios;

import common.simulation.scenarios.Operations;
import se.sics.kompics.p2p.experiment.dsl.SimulationScenario;

@SuppressWarnings("serial")
public class Scenario1 extends Scenario {
	private static SimulationScenario scenario = new SimulationScenario() {{
		StochasticProcess process1 = new StochasticProcess() {{
			eventInterArrivalTime(constant(100));
			raise(100, Operations.peerJoin(5), uniform(13));
		}};
		
		/*StochasticProcess process2 = new StochasticProcess() {{
			eventInterArrivalTime(constant(100));
			raise(50, Operations.peerJoin(25), uniform(13));
		}};*/
		
		/*StochasticProcess process3 = new StochasticProcess() {{
			eventInterArrivalTime(constant(100));
			raise(20, Operations.peerJoin(80), uniform(13));
		}};
		
		StochasticProcess process4 = new StochasticProcess() {{
			eventInterArrivalTime(constant(100));
			raise(20, Operations.peerJoin(125), uniform(13));
		}};
		
		StochasticProcess process5 = new StochasticProcess() {{
			eventInterArrivalTime(constant(100));
			raise(20, Operations.peerJoin(90), uniform(13));
		}};*/

		process1.start();
		//process2.start();
		//process3.start();
		//process4.start();
		//process5.start();
	}};
	
//-------------------------------------------------------------------
	public Scenario1() {
		super(scenario);
	} 
}
